package logic

import (
	"context"
	"server/models"
	"server/proto"
)

// todo：投诉  保存到es
func (s *ServerRpc) EsIkIndex(ctx context.Context, in *proto.EsIkIndexReq) (*proto.EsIkIndexRes, error) {
	err := models.EsIkIndex(in.Index)
	if err != nil {
		return &proto.EsIkIndexRes{}, err
	}
	return &proto.EsIkIndexRes{}, nil
}
